package zhieasy.cn.common.vo;

import lombok.Data;

import java.io.Serializable;

/**
 * @author zouchanglin
 * @param <T> 返回的ViewObject
 */
@Data
public class ResultVO<T> implements Serializable {
    private static final long serialVersionUID = 3942667107914601199L;

    /** 错误码. */
    private Integer code;

    /** 提示信息. */
    private String msg;

    /** 具体内容. */
    private T data;

    public ResultVO(){

    }

    public ResultVO(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = (T) data;
    }
}
